﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web.Mvc;
using danreng.Domain;

namespace danreng.Host.Controllers {
    public class ItemController : Controller {

        public ActionResult Index() {
            return View(new string[] { "value1", "value2" });
        }

        public ActionResult Details(int id) {
            return View();
        }

        [Authorize]
        public ActionResult Submit() {
            return View();
        }

        [Authorize]
        [HttpPost]
        public ActionResult Submit(ItemData data) {
            return View();
        }

        [Authorize]
        public ActionResult Edit(int id) {
            return View();
        }

        [Authorize]
        [HttpPost]
        public ActionResult Edit(int id, FormCollection collection) {
            return View();
        }

        [Authorize]
        [HttpPost]
        public ActionResult Delete(int id, FormCollection collection) {
            return View();
        }
    }
}